//package edu.gym4all.data.sqlite.android.init;
//
//import android.content.Context;
//import android.database.SQLException;
//import android.database.sqlite.SQLiteDatabase;
//import android.database.sqlite.SQLiteOpenHelper;
//import android.util.Log;
//
//public class SQLiteTrainingPlanInit extends SQLiteOpenHelper {
//
//	public static final String TB_TRAINING_PLAN = "training_plan";
//	public static final String COD_TRAINING_PLAN = "cod_training_plan";
//
//	private static final String DATABASE_NAME = "gym4all";
//	private static final int DATABASE_VERSION = 1;
//
//	private static final String CREATE_TRAINING_PLAN_TB = "create table "
//			+ TB_TRAINING_PLAN + "( " + COD_TRAINING_PLAN
//			+ " integer primary key autoincrement);";
//
//	public SQLiteTrainingPlanInit(Context context) {
//		super(context, DATABASE_NAME, null, DATABASE_VERSION);
//	}
//
//	@Override
//	public void onCreate(SQLiteDatabase db) {
//		SQLiteDatabase.openOrCreateDatabase(DATABASE_NAME, null);
//		db.beginTransaction();
//		try {
//			db.execSQL(CREATE_TRAINING_PLAN_TB);
//			db.setTransactionSuccessful();
//		} catch (SQLException e) {
//			Log.e("Erro ao criar as tabelas e testar os dados", e.toString());
//		} finally {
//			db.endTransaction();
//		}
//
//	}
//
//	@Override
//	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
//		// TODO Auto-generated method stub
//
//	}
// }
